<!-- Breadcrumbs-->
<ol class="breadcrumb">
    <li class="breadcrumb-item">
        <a href="">评论</a>
    </li>
    <li class="breadcrumb-item active">首页</li>
</ol>
<div class="card-body">
    <div class="table-responsive">
        <table class="table table-bordered" width="100%" cellspacing="0">
            <thead>
            <tr>
                <th>ID</th>
                <!--<th>标题</th>-->
                <th>评论内容</th>
                <th>创建时间</th>
                <th>状态</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody>
            {volist name ="comments" id="comment"}
            <tr>
                <td>{$comment->id}</td>

                <td>{$comment->content}</td>
                <td>{$comment->create_time}</td>
                <td>{$comment->statusText()}</td>
                <td>
                    <div class="btn-group">
                        <a href="javascript:void(0)" onclick="if (confirm('确定删除?')) { location.href = '{:url(\'backend/comment/delete\', [\'id\' => $comment->id])}'}" class="btn btn-warning">删除</a>
                        <a href="javascript:void(0)" onclick="if (confirm('确定操作?')) { location.href = '{:url(\'backend/comment/check\', [\'id\' => $comment->id])}?status=9'}" class="btn btn-warning">审核通过</a>
                        <a href="javascript:void(0)" onclick="if (confirm('确定操作?')) { location.href = '{:url(\'backend/comment/check\', [\'id\' => $comment->id])}?status=-1'}" class="btn btn-warning">审核拒绝</a>
                    </div>
                </td>
            </tr>
            {/volist}
            </tbody>
        </table>

        <div class="col-sm-12">
            {$comments|raw}
        </div>
    </div>
</div>